package day09;

import java.util.Arrays;

public class stringTools03 {
    public static void main(String[] args) {
        String str="abcdeffb";
        System.out.println(str.toUpperCase());
        System.out.println(str.charAt(3));//d
        System.out.println(str.indexOf('b'));//1
        System.out.println(str.lastIndexOf('b'));//7
        String str2=str.concat("123");
        System.out.println(str2);
        System.out.println(str.startsWith("a"));//true
        System.out.println(str.endsWith("a"));//false
        System.out.println(Arrays.toString(str.split("e")));
        String[] s=str.split("e");
        System.out.println("************");
        for (String ss:s){
            System.out.println(ss);
        }
    }
}
